package com.ruoyi.exam.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam.mapper.ExamExaminationMapper;
import com.ruoyi.exam.domain.ExamExamination;
import com.ruoyi.exam.service.IExamExaminationService;

/**
 * 考试Service业务层处理
 * 
 * @author ba7lgj
 * @date 2024-04-03
 */
@Service
public class ExamExaminationServiceImpl implements IExamExaminationService 
{
    @Autowired
    private ExamExaminationMapper examExaminationMapper;

    /**
     * 查询考试
     * 
     * @param examId 考试主键
     * @return 考试
     */
    @Override
    public ExamExamination selectExamExaminationByExamId(Long examId)
    {
        return examExaminationMapper.selectExamExaminationByExamId(examId);
    }

    /**
     * 查询考试列表
     * 
     * @param examExamination 考试
     * @return 考试
     */
    @Override
    public List<ExamExamination> selectExamExaminationList(ExamExamination examExamination)
    {
        return examExaminationMapper.selectExamExaminationList(examExamination);
    }

    /**
     * 新增考试
     * 
     * @param examExamination 考试
     * @return 结果
     */
    @Override
    public int insertExamExamination(ExamExamination examExamination)
    {
        return examExaminationMapper.insertExamExamination(examExamination);
    }

    /**
     * 修改考试
     * 
     * @param examExamination 考试
     * @return 结果
     */
    @Override
    public int updateExamExamination(ExamExamination examExamination)
    {
        return examExaminationMapper.updateExamExamination(examExamination);
    }

    /**
     * 批量删除考试
     * 
     * @param examIds 需要删除的考试主键
     * @return 结果
     */
    @Override
    public int deleteExamExaminationByExamIds(Long[] examIds)
    {
        return examExaminationMapper.deleteExamExaminationByExamIds(examIds);
    }

    /**
     * 删除考试信息
     * 
     * @param examId 考试主键
     * @return 结果
     */
    @Override
    public int deleteExamExaminationByExamId(Long examId)
    {
        return examExaminationMapper.deleteExamExaminationByExamId(examId);
    }
}
